package com.changcheng.project.obuupdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.obuupdata.mapper.AObufileListMapper;
import com.changcheng.project.obuupdata.domain.AObufileList;
import com.changcheng.project.obuupdata.service.IAObufileListService;
import com.changcheng.common.utils.text.Convert;

/**
 * OBU升级文件Service业务层处理
 * 
 * @author dazhi
 * @date 2020-10-30
 */
@Service
public class AObufileListServiceImpl implements IAObufileListService 
{
    @Autowired
    private AObufileListMapper aObufileListMapper;

    /**
     * 查询OBU升级文件
     * 
     * @param id OBU升级文件ID
     * @return OBU升级文件
     */
    @Override
    public AObufileList selectAObufileListById(Long id)
    {
        return aObufileListMapper.selectAObufileListById(id);
    }

    /**
     * 查询OBU升级文件列表
     * 
     * @param aObufileList OBU升级文件
     * @return OBU升级文件
     */
    @Override
    public List<AObufileList> selectAObufileListList(AObufileList aObufileList)
    {
        return aObufileListMapper.selectAObufileListList(aObufileList);
    }

    /**
     * 新增OBU升级文件
     * 
     * @param aObufileList OBU升级文件
     * @return 结果
     */
    @Override
    public int insertAObufileList(AObufileList aObufileList)
    {
        return aObufileListMapper.insertAObufileList(aObufileList);
    }

    /**
     * 修改OBU升级文件
     * 
     * @param aObufileList OBU升级文件
     * @return 结果
     */
    @Override
    public int updateAObufileList(AObufileList aObufileList)
    {
        return aObufileListMapper.updateAObufileList(aObufileList);
    }

    /**
     * 删除OBU升级文件对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAObufileListByIds(String ids)
    {
        return aObufileListMapper.deleteAObufileListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除OBU升级文件信息
     * 
     * @param id OBU升级文件ID
     * @return 结果
     */
    @Override
    public int deleteAObufileListById(Long id)
    {
        return aObufileListMapper.deleteAObufileListById(id);
    }
}
